using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace Zeus.Biz.DomainModel.NHib.Northwind {
    
    
    public class ProductsByCategoryMap : ClassMap<ProductsByCategory> {
        
        public ProductsByCategoryMap() {
			Table("Products by Category");
			LazyLoad();
			CompositeId();
			Map(x => x.CategoryName).Column("CategoryName").Not.Nullable().Length(15);
			Map(x => x.ProductName).Column("ProductName").Not.Nullable().Length(40);
			Map(x => x.QuantityPerUnit).Column("QuantityPerUnit").Length(20);
			Map(x => x.UnitsInStock).Column("UnitsInStock");
			Map(x => x.Discontinued).Column("Discontinued").Not.Nullable();
        }
    }
}
